{*head部分*}
{include file='Public/head.html' use_ckeditor='yes'}
<div class="wrapper">
    <!-- START HEADER -->
    {*页头部分*}
    {include file='Public/ghead.html'}
    <!-- END HEADER -->

    <!-- START MAIN -->
    <div id="main">
        <!-- START SIDEBAR -->
        {*导航部分*}
        {include file='Public/nav.html'}
        <!-- END SIDEBAR -->

        <!-- START PAGE -->
        <div id="page">
            <!-- start page title -->
            <div class="page-title">
                <div class="in">
                    <div class="titlebar">	<h2>博文管理</h2>	<p>编辑博文</p></div>

                    <div class="clear"></div>
                </div>
            </div>
            <!-- end page title -->

            <!-- START CONTENT -->
            <div class="content">
                <div class="simplebox grid740" style="z-index: 720;">
                    <div class="titleh" style="z-index: 710;">
                        <h3>编辑博文</h3>
                    </div>
                    <div class="body" style="z-index: 690;">

                        <form id="form2" name="form2" method="post" action="{$url}?p=admin&m=Article&a=upd&id={$article['id']}">
						<!-- <input type="hidden" name="p" value="back"/> -->
						<!-- <input type="hidden" name="m" value="article"/> -->
						<!-- <input type="hidden" name="a" value="update"/> -->
						<!-- <input type="hidden" name="id" value="12"/> -->
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">标题</span>
                                <input name="title" type="text" class="st-forminput" style="width:510px" value="{$article['title']}">
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">简介</span>
                                <textarea name="intro" cols=60></textarea>
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="st-form-line">
                                <span class="st-labeltext">发布日期</span>
                                <!-- start default date picker -->
                                <script type="text/javascript">
                                    $(function() {
                                        $("#datepicker").datepicker();
                                    });
                                </script>
                                <input type="text" id="datepicker" class="datepicker-input" style="width:180px;" name="pubtime" value="2017/03/27">
                                <!-- end default date picker -->
                                <div class="clear" style="z-index: 510;"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 640;">
                                <span class="st-labeltext">分类</span>
                                <select class="uniform" name="cat_id">
									{foreach from=$tree item='article' key='k'}
                                    <option value="{$article['id']}" >{$article['name']}</option>
                                    {/foreach}
									<!--<option value="2" >&#45;&#45;计算机</option>-->
									<!--<option value="17" >&#45;&#45;&#45;&#45;笔记本</option>-->
									<!--<option value="3" >&#45;&#45;航空航天</option>-->
									<!--<option value="4" >&#45;&#45;&#45;&#45;民航</option>-->
									<!--<option value="5" >&#45;&#45;&#45;&#45;火星计划</option>-->
									<!--<option value="6" >美食</option>-->
									<!--<option value="7" >&#45;&#45;湘菜</option>-->
									<!--<option value="12" >&#45;&#45;&#45;&#45;口味虾</option>-->
									<!--<option value="13" >&#45;&#45;&#45;&#45;口味蛇</option>-->
									<!--<option value="14" selected="selected">&#45;&#45;&#45;&#45;口味蛙</option>-->
									<!--<option value="15" >&#45;&#45;&#45;&#45;宫保鸡丁</option>-->
									<!--<option value="16" >&#45;&#45;&#45;&#45;黄鸭叫</option>-->
									<!--<option value="8" >&#45;&#45;川菜</option>-->
									<!--<option value="9" >&#45;&#45;粤菜</option>-->
									<!--<option value="11" >&#45;&#45;徽菜</option>-->

                                </select>
                                <div class="clear"></div>
                            </div>
                            <div class="st-form-line">
                                <span class="st-labeltext">状态</span>
                                    <select class="uniform" name="status">
                                    <option value="1" >草稿</option>
                                    <option value="2" selected="selected">公开</option>
                                    <option value="3" >隐藏</option>
                                </select>
                                <div class="clear"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 620;">
                                <span class="st-labeltext">置顶</span>
                                <label class="margin-right10">
                                    <div class="radio">
                                        <span><input type="radio" name="toped" class="uniform" value="1"></span>
                                    </div> 置顶
                                </label>
                                <label class="margin-right10">
                                    <div class="radio">
                                        <span><input type="radio" name="toped" class="uniform" value="2" checked></span>
                                    </div> 不置顶
                                </label>

                                <div class="clear" style="z-index: 610;"></div>
                            </div>

                            <!-- START jWYSIWYG TEXT EDITOR -->
                            <div class="simplebox grid740">
                                <div class="titleh">
                                    <h3>内容</h3>
                                </div>
                                <div class="body">
                                    <textarea class="st-forminput" rows="5" cols="47" style="width:96.5%;" name="content">{$article['content']}</textarea>
									<script>CKEDITOR.replace('content');</script>
                                </div>

                            </div>
                            <!-- END jWYSIWYG TEXT EDITOR -->

                            <div class="button-box" style="z-index: 460;">
                                <input type="submit" name="button" id="button" value="提交" class="st-button">
                            </div>
                        </form>

                    </div>
                </div>
            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->
        <div class="clear"></div>
    </div>
    <!-- END MAIN -->

    <!-- START FOOTER -->
    {*页脚部分*}
    {include file='Public/footer.html'}